package com.example.myapplication;

import android.content.Context;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;

/**
 * Create by hsw
 * on 2018/12/3.
 */
public class GirdItemViewHolder extends RecyclerView.ViewHolder {
    public TextView tvName;
    public ImageView tvimg;
    public TextView tvinfo;
    public ImageButton tvpay;
    public GirdItemViewHolder(Context context, ViewGroup parent) {
        super(LayoutInflater.from(context).inflate(R.layout.vh_gird_item, parent, false));
        tvimg = itemView.findViewById(R.id.image);
        tvName = itemView.findViewById(R.id.title);
        tvinfo = itemView.findViewById(R.id.info);
        tvpay = itemView.findViewById(R.id.pay);
        tvpay.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                

            }
        });
    }
}
